package com.woniuxy.factory.mapper;

import com.woniuxy.factory.entity.PurchaseRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 邹佳骏
 * @date 2020-08-17 12:06
 */

public interface PurchaseRequestMapper {


    /*查询总条数*/
    int getAllCount();

    /*查询所有的采购申请表*/
    List<PurchaseRequest> getPurchaseRequestAll(@Param("home") int home, @Param("limit") int limit
            , @Param("purchaseRequest") PurchaseRequest purchaseRequest
            , @Param("startTime") String startTime, @Param("endTime") String endTime);

    /*新增订单*/
    void insertPurchase(PurchaseRequest purchaseRequest);

    /*根据采购编号查询当前采购申请表的序号*/
    int selectpurIdByRequestnumber(String requestnumber);
}
